/*
 *  vbe.h
 *  xcode
 *
 *  Created by Emiel Goor,van on 28-01-08.
 *  Copyright 2008 __MyCompanyName__. All rights reserved.
 *
 */
#ifndef VBE_H
#define VBE_H



typedef struct tagBITMAP              /* the structure for a bitmap. */
{
    unsigned int width;
    unsigned int height;
    unsigned char *data;
} BITMAP;

typedef struct tagRECT
{
    long x1;
    long y1;
    long x2;
    long y2;
} RECT;

#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480


void vbeinit(unsigned long *framebuffer);
void init_dbl_buffer(void);

void update_screen(void);

void setpixel (BITMAP *bmp, int x, int y, unsigned char color);

#endif

